<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>源辰-浏览管理员信息</title>
<link rel="shortcut icon" href="../../bk/images/copylogo.png" type="image/x-icon" />
<link rel="stylesheet" href="../../bk/css/common.css">
<link rel="stylesheet" href="../../bk/css/main.css">
<script type="text/javascript" src="../../bk/js/jquery.min.js"></script>
<script type="text/javascript">
var pageNo = 1;
var pageSize = 10;
var totalSize = 0;
var totalPage = 0;

$(function(){
	findByAll();
});


function findByAll() {
	$.get("../../menberInfo/findAll", null, function(data){
		var str = "";
		$.each(data, function(index, item) {
			str += "<tr><td>"+item.mno+"</td><td>"+item.nickName+"</td><td>"+item.pwd+"</td><td>"+item.tel+"</td><td>"+item.email+"</td><td><a href='javascript:delAdmin("+item.mno+")'>[删除]</a></td></tr>";
		});
		$("#news_info").html("").append($(str));
	},"json");
}



function  delAdmin(mno) {
	$.post("../../menberInfo/del", {mno:mno}, function(data){
		data = parseInt($.trim(data));
		if (data > 0) {
			alert("删除成功");
			findByAll();
		} else {
			alert("删除失败");
		}
	},"text");
}

</script>
</head>
<body>
<div id="table" class="mt10">
	<div class="box span10 oh">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
			<thead>
				<tr>
					<th width="80">编号</th>
                   	<th width="100">姓名</th>
                   	<th width="100">密码</th>
                   	<th width="200">联系方式</th>  
                   	<th width="200">电子邮箱</th>    
                   	<th width="120">操作</th>
                </tr>
             </thead>
             
             <tbody id="news_info" align="center">
			      
             </tbody>
		</table>
        <div class="page mt10">
		<div class="pagination">
            <ul id ="pagination_info">
				<li class="first-child active"><a href="javascript:void()" onclick=" ">首页</a></li>
				<li class="active"><a href="javascript:void()" onclick=" ">1</a></li>
				<li><a href="javascript:void()" onclick=" ">2</a></li>
				<li class="last-child"><a href="javascript:void()" onclick=" ">末页</a></li>'
			</ul>
		</div>
        </div>
	</div>
</div>
</body>
</html>